package com.qq5194102.simpleskills.model;
/**
 * Created by 5194102 on 2025/7/13.
 * 玩家技能数据基类
 */
public abstract class BasePlayerSkillData {
    protected String skillName;
    protected int experience = 0;
    protected int expPerLevel = 100;//每级需要多少经验

    protected BasePlayerSkillData() {
    }

    public String getSkillName() {
        return skillName;
    }


    public int getExperience() {
        return experience;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName;
    }

    public void setExperience(int experience) {
        this.experience = experience;
    }
    public void addExperience(int experience) {
        this.experience = this.experience+experience;
    }

    public int getLevel(){
        return experience/expPerLevel;
    }
    public int getHowMuchExpNextLevel(){
        return (expPerLevel-experience%100);
    }

}
